
<form id="GoodsForm" data-auto="true" method="post" action="{:request()->url()}" class='layui-form layui-card res_field_form' lay-filter="form_sub" autocomplete="off">
    <div class="layui-card-body think-box-shadow padding-left-40">

        <div class="layui-form-item layui-row layui-col-space15">
            <span class="color-green label-required-prev">分类名称</span>
            <input name="name"  required class="layui-input" placeholder="请输入分类名称" value="{$vo.name|default=''}">
        </div>


        <div class="layui-form-item text-center">
            {notempty name='vo.id'}<input type="hidden" name="id" value="{$vo.id}">{/notempty}
            <!--<button class="layui-btn layui-btn-danger" id="backBtn" data-confirm="确定要取消吗？" data-close type="button">取消</button>-->
            <button class="layui-btn" type="submit" lay-submit lay-filter="form_sub">保存</button>
            <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消吗？" data-close>取 消</button>
        </div>
    </div>

    </div>
</form>
<script>
    window.form.render();

</script>

